CREATE FUNCTION [dbo].*[Varchar2float]
*(_-- Input Parameter
@inputString _VARCHAR(50))
RETURNS _FLOAT
_AS
BEGIN
_--Prepare the string for casting/conversion
SET @inputString = _Replace(@inputString,'.','') 
SET @inputString = Replace(@inputString,',','.')

_--Perform the conversion and return the result
RETURN _Cast(@inputString AS FLOAT)
END 